.class public Lrexsee/ebook/RexseePageFlip;
.super Ljava/lang/Object;
.source "RexseePageFlip.java"

# interfaces
.implements Lrexsee/core/browser/clazz/JavascriptInterface;


# static fields
.field public static final EVENT_ONFLIPDIALOGDISMISSED:Ljava/lang/String; = "onFlipDialogDismissed"

.field private static final INTERFACE_NAME:Ljava/lang/String; = "PageFlip"


# instance fields
.field private final mBrowser:Lrexsee/core/browser/Browser;

.field private final mContext:Landroid/content/Context;

.field private final mMap:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Lrexsee/ebook/PageFlipDialog;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 2
    .param p1, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 40
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 41
    iput-object p1, p0, Lrexsee/ebook/RexseePageFlip;->mBrowser:Lrexsee/core/browser/Browser;

    .line 42
    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mContext:Landroid/content/Context;

    .line 43
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    .line 44
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v1, "onFlipDialogDismissed"

    invoke-virtual {v0, v1}, Lrexsee/core/browser/clazz/EventList;->add(Ljava/lang/String;)V

    .line 45
    return-void
.end method

.method static synthetic access$0(Lrexsee/ebook/RexseePageFlip;)Lrexsee/core/browser/Browser;
    .locals 1

    .prologue
    .line 36
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mBrowser:Lrexsee/core/browser/Browser;

    return-object v0
.end method

.method static synthetic access$1(Lrexsee/ebook/RexseePageFlip;)Ljava/util/HashMap;
    .locals 1

    .prologue
    .line 37
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    return-object v0
.end method


# virtual methods
.method public dismiss(Ljava/lang/String;)V
    .locals 2
    .param p1, "id"    # Ljava/lang/String;

    .prologue
    .line 125
    iget-object v1, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v1, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 132
    :goto_0
    return-void

    .line 126
    :cond_0
    iget-object v1, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v1, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lrexsee/ebook/PageFlipDialog;

    .line 128
    .local v0, "dialog":Lrexsee/ebook/PageFlipDialog;
    if-eqz v0, :cond_1

    :try_start_0
    invoke-virtual {v0}, Lrexsee/ebook/PageFlipDialog;->dismiss()V

    .line 129
    :cond_1
    iget-object v1, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v1, p1}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 130
    :catch_0
    move-exception v1

    goto :goto_0
.end method

.method public dismissAll()V
    .locals 5

    .prologue
    .line 134
    iget-object v4, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v4}, Ljava/util/HashMap;->keySet()Ljava/util/Set;

    move-result-object v3

    .line 135
    .local v3, "keys":Ljava/util/Set;, "Ljava/util/Set<Ljava/lang/String;>;"
    invoke-interface {v3}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    .line 136
    .local v1, "iterator":Ljava/util/Iterator;, "Ljava/util/Iterator<Ljava/lang/String;>;"
    :cond_0
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-nez v4, :cond_1

    .line 147
    :try_start_0
    iget-object v4, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v4}, Ljava/util/HashMap;->clear()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    .line 150
    :goto_1
    return-void

    .line 137
    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 138
    .local v2, "key":Ljava/lang/String;
    iget-object v4, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v4, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lrexsee/ebook/PageFlipDialog;

    .line 139
    .local v0, "dialog":Lrexsee/ebook/PageFlipDialog;
    if-eqz v0, :cond_0

    .line 141
    :try_start_1
    invoke-virtual {v0}, Lrexsee/ebook/PageFlipDialog;->dismiss()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    .line 142
    :catch_0
    move-exception v4

    goto :goto_0

    .line 148
    .end local v0    # "dialog":Lrexsee/ebook/PageFlipDialog;
    .end local v2    # "key":Ljava/lang/String;
    :catch_1
    move-exception v4

    goto :goto_1
.end method

.method public exists(Ljava/lang/String;)Z
    .locals 1
    .param p1, "id"    # Ljava/lang/String;

    .prologue
    .line 162
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method

.method public getIds()Ljava/lang/String;
    .locals 6

    .prologue
    const-string v5, "\""

    .line 168
    const-string v2, ""

    .line 169
    .local v2, "rtn":Ljava/lang/String;
    iget-object v3, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v3}, Ljava/util/HashMap;->keySet()Ljava/util/Set;

    move-result-object v0

    .line 170
    .local v0, "ids":Ljava/util/Set;, "Ljava/util/Set<Ljava/lang/String;>;"
    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    .line 171
    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    .local v1, "iterator":Ljava/util/Iterator;, "Ljava/util/Iterator<Ljava/lang/String;>;"
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-nez v3, :cond_0

    .line 175
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "["

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "]"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    return-object v3

    .line 172
    :cond_0
    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_1

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, ","

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    .line 173
    :cond_1
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, "\""

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/String;

    invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "\""

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    goto :goto_0
.end method

.method public getInheritInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 0
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 26
    return-object p0
.end method

.method public getInterfaceName()Ljava/lang/String;
    .locals 2

    .prologue
    .line 22
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lrexsee/ebook/RexseePageFlip;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "PageFlip"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getNewInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 30
    new-instance v0, Lrexsee/ebook/RexseePageFlip;

    invoke-direct {v0, p1}, Lrexsee/ebook/RexseePageFlip;-><init>(Lrexsee/core/browser/Browser;)V

    return-object v0
.end method

.method public getPageIndex(Ljava/lang/String;)I
    .locals 3
    .param p1, "id"    # Ljava/lang/String;

    .prologue
    .line 193
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 194
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/ebook/RexseePageFlip;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "Invalid page dialog ID."

    invoke-virtual {v0, v1, v2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 195
    const/4 v0, -0x1

    .line 197
    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    :goto_0
    return v0

    .restart local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    :cond_0
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    check-cast p0, Lrexsee/ebook/PageFlipDialog;

    iget-object v0, p0, Lrexsee/ebook/PageFlipDialog;->pageView:Lrexsee/ebook/PageView;

    invoke-virtual {v0}, Lrexsee/ebook/PageView;->getPageIndex()I

    move-result v0

    goto :goto_0
.end method

.method public getPageIndexes(Ljava/lang/String;)Ljava/lang/String;
    .locals 3
    .param p1, "id"    # Ljava/lang/String;

    .prologue
    .line 186
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 187
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/ebook/RexseePageFlip;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "Invalid page dialog ID."

    invoke-virtual {v0, v1, v2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 188
    const-string v0, "[]"

    .line 190
    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    :goto_0
    return-object v0

    .restart local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    :cond_0
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    check-cast p0, Lrexsee/ebook/PageFlipDialog;

    iget-object v0, p0, Lrexsee/ebook/PageFlipDialog;->pageView:Lrexsee/ebook/PageView;

    invoke-virtual {v0}, Lrexsee/ebook/PageView;->getPageIndexes()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public getPageTitle(Ljava/lang/String;)Ljava/lang/String;
    .locals 3
    .param p1, "id"    # Ljava/lang/String;

    .prologue
    .line 207
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 208
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/ebook/RexseePageFlip;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "Invalid page dialog ID."

    invoke-virtual {v0, v1, v2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 209
    const-string v0, ""

    .line 211
    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    :goto_0
    return-object v0

    .restart local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    :cond_0
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    check-cast p0, Lrexsee/ebook/PageFlipDialog;

    iget-object v0, p0, Lrexsee/ebook/PageFlipDialog;->pageView:Lrexsee/ebook/PageView;

    invoke-virtual {v0}, Lrexsee/ebook/PageView;->getPageTitle()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public getPageTitle(Ljava/lang/String;I)Ljava/lang/String;
    .locals 3
    .param p1, "id"    # Ljava/lang/String;
    .param p2, "index"    # I

    .prologue
    .line 214
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 215
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/ebook/RexseePageFlip;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "Invalid page dialog ID."

    invoke-virtual {v0, v1, v2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 216
    const-string v0, ""

    .line 218
    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    :goto_0
    return-object v0

    .restart local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    :cond_0
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    check-cast p0, Lrexsee/ebook/PageFlipDialog;

    iget-object v0, p0, Lrexsee/ebook/PageFlipDialog;->pageView:Lrexsee/ebook/PageView;

    invoke-virtual {v0, p2}, Lrexsee/ebook/PageView;->getPageTitle(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public getPageTotal(Ljava/lang/String;)I
    .locals 3
    .param p1, "id"    # Ljava/lang/String;

    .prologue
    .line 179
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 180
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/ebook/RexseePageFlip;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "Invalid page dialog ID."

    invoke-virtual {v0, v1, v2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 181
    const/4 v0, -0x1

    .line 183
    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    :goto_0
    return v0

    .restart local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    :cond_0
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    check-cast p0, Lrexsee/ebook/PageFlipDialog;

    iget-object v0, p0, Lrexsee/ebook/PageFlipDialog;->pageView:Lrexsee/ebook/PageView;

    invoke-virtual {v0}, Lrexsee/ebook/PageView;->getPageTotal()I

    move-result v0

    goto :goto_0
.end method

.method public getStyle(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .param p1, "id"    # Ljava/lang/String;
    .param p2, "name"    # Ljava/lang/String;

    .prologue
    .line 159
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, ""

    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    :goto_0
    return-object v0

    .restart local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    :cond_0
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    check-cast p0, Lrexsee/ebook/PageFlipDialog;

    invoke-virtual {p0, p2}, Lrexsee/ebook/PageFlipDialog;->getStyle(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public loadData(Ljava/lang/String;Ljava/lang/String;I)V
    .locals 3
    .param p1, "id"    # Ljava/lang/String;
    .param p2, "data"    # Ljava/lang/String;
    .param p3, "startIndex"    # I

    .prologue
    .line 110
    iget-object v1, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v1, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 122
    :goto_0
    return-void

    .line 111
    :cond_0
    iget-object v1, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v1, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lrexsee/ebook/PageFlipDialog;

    .line 112
    .local v0, "dialog":Lrexsee/ebook/PageFlipDialog;
    iget-object v1, p0, Lrexsee/ebook/RexseePageFlip;->mContext:Landroid/content/Context;

    check-cast v1, Landroid/app/Activity;

    new-instance v2, Lrexsee/ebook/RexseePageFlip$2;

    invoke-direct {v2, p0, v0, p2, p3}, Lrexsee/ebook/RexseePageFlip$2;-><init>(Lrexsee/ebook/RexseePageFlip;Lrexsee/ebook/PageFlipDialog;Ljava/lang/String;I)V

    invoke-virtual {v1, v2}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    goto :goto_0
.end method

.method public searchText(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 3
    .param p1, "id"    # Ljava/lang/String;
    .param p2, "text"    # Ljava/lang/String;

    .prologue
    .line 221
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 222
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/ebook/RexseePageFlip;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "Invalid page dialog ID."

    invoke-virtual {v0, v1, v2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 223
    const-string v0, "[]"

    .line 225
    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    :goto_0
    return-object v0

    .restart local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    :cond_0
    invoke-virtual {p2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    check-cast p0, Lrexsee/ebook/PageFlipDialog;

    iget-object v0, p0, Lrexsee/ebook/PageFlipDialog;->pageView:Lrexsee/ebook/PageView;

    invoke-virtual {v0}, Lrexsee/ebook/PageView;->getPageIndexes()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .restart local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    :cond_1
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    check-cast p0, Lrexsee/ebook/PageFlipDialog;

    iget-object v0, p0, Lrexsee/ebook/PageFlipDialog;->pageView:Lrexsee/ebook/PageView;

    invoke-virtual {v0, p2}, Lrexsee/ebook/PageView;->searchText(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public setPageIndex(Ljava/lang/String;I)V
    .locals 3
    .param p1, "id"    # Ljava/lang/String;
    .param p2, "index"    # I

    .prologue
    .line 200
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 201
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/ebook/RexseePageFlip;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "Invalid page dialog ID."

    invoke-virtual {v0, v1, v2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 205
    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    :goto_0
    return-void

    .line 204
    .restart local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    :cond_0
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    check-cast p0, Lrexsee/ebook/PageFlipDialog;

    iget-object v0, p0, Lrexsee/ebook/PageFlipDialog;->pageView:Lrexsee/ebook/PageView;

    invoke-virtual {v0, p2}, Lrexsee/ebook/PageView;->setPageIndex(I)V

    goto :goto_0
.end method

.method public setStyle(Ljava/lang/String;Ljava/lang/String;)V
    .locals 3
    .param p1, "id"    # Ljava/lang/String;
    .param p2, "style"    # Ljava/lang/String;

    .prologue
    .line 152
    if-eqz p1, :cond_0

    invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 153
    :cond_0
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/ebook/RexseePageFlip;->getInterfaceName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "The dialog specified by the id does not exist."

    invoke-virtual {v0, v1, v2}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 157
    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    :goto_0
    return-void

    .line 156
    .restart local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    :cond_1
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    .end local p0    # "this":Lrexsee/ebook/RexseePageFlip;
    check-cast p0, Lrexsee/ebook/PageFlipDialog;

    invoke-virtual {p0, p2}, Lrexsee/ebook/PageFlipDialog;->setStyle(Ljava/lang/String;)V

    goto :goto_0
.end method

.method public show(Ljava/lang/String;Ljava/lang/String;)V
    .locals 6
    .param p1, "url"    # Ljava/lang/String;
    .param p2, "style"    # Ljava/lang/String;

    .prologue
    const/4 v1, 0x0

    .line 50
    const/4 v4, 0x0

    move-object v0, p0

    move-object v2, p1

    move-object v3, p2

    move-object v5, v1

    invoke-virtual/range {v0 .. v5}, Lrexsee/ebook/RexseePageFlip;->show(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V

    .line 51
    return-void
.end method

.method public show(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V
    .locals 8
    .param p1, "id"    # Ljava/lang/String;
    .param p2, "url"    # Ljava/lang/String;
    .param p3, "style"    # Ljava/lang/String;
    .param p4, "startIndex"    # I
    .param p5, "pregFilter"    # Ljava/lang/String;

    .prologue
    .line 53
    if-eqz p1, :cond_0

    move-object v0, p1

    .line 54
    .local v0, "dialogId":Ljava/lang/String;
    :goto_0
    iget-object v5, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v5, v0}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 55
    iget-object v5, p0, Lrexsee/ebook/RexseePageFlip;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/ebook/RexseePageFlip;->getInterfaceName()Ljava/lang/String;

    move-result-object v6

    const-string v7, "Duplicated dialog id."

    invoke-virtual {v5, v6, v7}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 73
    :goto_1
    return-void

    .end local v0    # "dialogId":Ljava/lang/String;
    :cond_0
    move-object v0, p2

    .line 53
    goto :goto_0

    .line 58
    .restart local v0    # "dialogId":Ljava/lang/String;
    :cond_1
    iget-object v5, p0, Lrexsee/ebook/RexseePageFlip;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v5, v5, Lrexsee/core/browser/Browser;->urlListeners:Lrexsee/core/browser/RexseeUrl;

    iget-object v6, p0, Lrexsee/ebook/RexseePageFlip;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v6, v6, Lrexsee/core/browser/Browser;->urlListeners:Lrexsee/core/browser/RexseeUrl;

    invoke-virtual {v6, p2}, Lrexsee/core/browser/RexseeUrl;->getAbsoluteUrl(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Lrexsee/core/browser/RexseeUrl;->getContent(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 59
    .local v4, "source":Ljava/lang/String;
    if-eqz v4, :cond_2

    const-string v5, "[Exception]"

    invoke-virtual {v4, v5}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_3

    .line 60
    :cond_2
    iget-object v5, p0, Lrexsee/ebook/RexseePageFlip;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/ebook/RexseePageFlip;->getInterfaceName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6, v4}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    .line 63
    :cond_3
    if-eqz p5, :cond_4

    invoke-virtual {p5}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v5

    const-string v6, ""

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_4

    .line 64
    iget-object v5, p0, Lrexsee/ebook/RexseePageFlip;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v5, v5, Lrexsee/core/browser/Browser;->urlListeners:Lrexsee/core/browser/RexseeUrl;

    const-string v6, "preg"

    invoke-virtual {v5, v6, p5}, Lrexsee/core/browser/RexseeUrl;->getFilter(Ljava/lang/String;Ljava/lang/String;)Lrexsee/core/browser/clazz/FilterListener;

    move-result-object v2

    check-cast v2, Lrexsee/core/browser/clazz/PregFilterListener;

    .line 65
    .local v2, "listener":Lrexsee/core/browser/clazz/PregFilterListener;
    if-eqz v2, :cond_4

    .line 66
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_2
    iget-object v5, v2, Lrexsee/core/browser/clazz/PregFilterListener;->pregPairs:Ljava/util/ArrayList;

    invoke-virtual {v5}, Ljava/util/ArrayList;->size()I

    move-result v5

    if-lt v1, v5, :cond_5

    .line 72
    .end local v1    # "i":I
    .end local v2    # "listener":Lrexsee/core/browser/clazz/PregFilterListener;
    :cond_4
    invoke-virtual {p0, v0, v4, p3, p4}, Lrexsee/ebook/RexseePageFlip;->showData(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V

    goto :goto_1

    .line 67
    .restart local v1    # "i":I
    .restart local v2    # "listener":Lrexsee/core/browser/clazz/PregFilterListener;
    :cond_5
    iget-object v5, v2, Lrexsee/core/browser/clazz/PregFilterListener;->pregPairs:Ljava/util/ArrayList;

    invoke-virtual {v5, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lrexsee/core/browser/clazz/PregPair;

    .line 68
    .local v3, "pair":Lrexsee/core/browser/clazz/PregPair;
    iget-object v5, v3, Lrexsee/core/browser/clazz/PregPair;->source:Ljava/lang/String;

    iget-object v6, v3, Lrexsee/core/browser/clazz/PregPair;->replacement:Ljava/lang/String;

    invoke-virtual {v4, v5, v6}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 66
    add-int/lit8 v1, v1, 0x1

    goto :goto_2
.end method

.method public showData(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V
    .locals 8
    .param p1, "id"    # Ljava/lang/String;
    .param p2, "data"    # Ljava/lang/String;
    .param p3, "style"    # Ljava/lang/String;
    .param p4, "startIndex"    # I

    .prologue
    const-string v2, ""

    .line 75
    if-eqz p1, :cond_0

    const-string v1, ""

    invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    if-eqz p2, :cond_0

    const-string v1, ""

    invoke-virtual {p2, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 76
    :cond_0
    iget-object v1, p0, Lrexsee/ebook/RexseePageFlip;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/ebook/RexseePageFlip;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    const-string v3, "Invalid arguments."

    invoke-virtual {v1, v2, v3}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    .line 107
    :goto_0
    return-void

    .line 79
    :cond_1
    iget-object v1, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v1, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 80
    iget-object v1, p0, Lrexsee/ebook/RexseePageFlip;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/ebook/RexseePageFlip;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    const-string v3, "Duplicated dialog id."

    invoke-virtual {v1, v2, v3}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 84
    :cond_2
    iget-object v1, p0, Lrexsee/ebook/RexseePageFlip;->mContext:Landroid/content/Context;

    move-object v0, v1

    check-cast v0, Landroid/app/Activity;

    move-object v7, v0

    new-instance v1, Lrexsee/ebook/RexseePageFlip$1;

    move-object v2, p0

    move-object v3, p1

    move-object v4, p3

    move-object v5, p2

    move v6, p4

    invoke-direct/range {v1 .. v6}, Lrexsee/ebook/RexseePageFlip$1;-><init>(Lrexsee/ebook/RexseePageFlip;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V

    invoke-virtual {v7, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    goto :goto_0
.end method

.method public size()I
    .locals 1

    .prologue
    .line 165
    iget-object v0, p0, Lrexsee/ebook/RexseePageFlip;->mMap:Ljava/util/HashMap;

    invoke-virtual {v0}, Ljava/util/HashMap;->size()I

    move-result v0

    return v0
.end method
